Run Ide Task
Runs the IDE instance using the currently selected IntelliJ Platform with the built plugin loaded. It directly extends the JavaExec Gradle task, which allows for an extensive configuration (system properties, memory management, etc.).
This task class also inherits from CustomIntelliJPlatformVersionAware, which makes it possible to create runIde-like tasks using custom IntelliJ Platform versions:
import org.jetbrains.intellij.platform.gradle.IntelliJPlatformType
import org.jetbrains.intellij.platform.gradle.tasks.RunIdeTask
tasks {
val runPhpStorm by registering(RunIdeTask::class) {
type = IntelliJPlatformType.PhpStorm
version = "2023.2.2"
}
val runLocalIde by registering(RunIdeTask::class) {
localPath = file("/Users/hsz/Applications/Android Studio.app")
}
}Properties
Enables auto-reload of dynamic plugins. Dynamic plugin will be reloaded automatically when its content is modified. This allows a much faster development cycle by avoiding a full restart of the development instance after code changes.
The path to the coroutines Java Agent file.
Holds the Configurations.INTELLIJ_PLATFORM configuration with the IntelliJ Platform dependency added. It should not be directly accessed.
Provides access to the IntelliJ Platform dependency artifact path.
Provides information about the IntelliJ Platform product. The information is retrieved from the product-info.json file in the IntelliJ Platform directory.
An architecture of the Java Runtime currently used for running Gradle.
Java Runtime parent directory.
A custom JavaLauncher instance configured with the resolved runtimeDirectory.
Metadata object of the Java Runtime currently used for running Gradle.
A configuration directory located within the sandboxContainerDirectory.
The container for all sandbox-related directories. The directory name depends on the platform type and version currently used for running a task.
A log directory located within the sandboxContainerDirectory.
A plugins directory located within the sandboxContainerDirectory.
Represents the suffix used i.e., for test-related tasks.
A system directory located within the sandboxContainerDirectory.
An input property to configure the type of the custom IntelliJ Platform.
Functions
Validates that the resolved IntelliJ Platform is supported by checking against the minimal supported IntelliJ Platform version.
Validates that the resolved IntelliJ Platform supports Split Mode.